import request from '@/utils/request'

// 查询售房合同的查询
export function houseContractList(query) {
  return request({
    url: '/financing/payment_plan/getHouseContractList',
    method: 'get',
    params: query
  })
}

// 根据id查询售房合同的查询
export function getHouseContractById(id) {
  return request({
    url: '/financing/payment_plan/getHouseContractById/'+id,
    method: 'get',
  })
}

// 支付
export function pay(data) {
  return request({
    url: '/financing/pay',
    method: 'post',
    data: data
  })
}

// 查询【请填写功能名称】详细
export function getPlan(id) {
  return request({
    url: '/financing/payment_plan/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function save(data) {
  return request({
    url: '/financing/payment_plan/savePaymentPlan',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updatePlan(data) {
  return request({
    url: '/financing/payment_plan',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delPlan(id) {
  return request({
    url: '/financing/payment_plan/' + id,
    method: 'delete'
  })
}


